<script>
function navigate()
{
    anchor = document.createElement("a");
    anchor.href = "about:blank";
    anchor.click();
}
var a = new Date();
a.toString = () => navigate();
console.log(42, a);
</script>